home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / STARSHIP_EFFECTS_SCRIPTS / starship_fly2.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  6.7 KB  |  300 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_STARSHIP_FLY2)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. PT = Emitter.ParticleTypesParams[1]
  51. PT.IsEmitterLocked = false
  52. PT.DrawOrder = 2
  53. PT.Material = ENMAT_PARTICLE_LIGHT
  54.  
  55.  
  56. PT.TextureName = "submarine_effect_tracesmoke.dds"
  57.  
  58. PT.ParticlesPerSecond = 30.0;
  59. PT.InitialNumberOfParticles = 0.0;
  60. PT.BaseLifeTime = 0.6;
  61. PT.BaseLifeTimeVariance = 0.0;
  62. PT.BaseSpeed = 0.0;
  63. PT.BaseSpeedVariance = 0.0;
  64.  
  65. PT.TangentSpeed = 0.0;
  66. PT.TangentSpeedVariance = 0.0;
  67. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  68. PT.TangentDirection = vzbzd4
  69. vzbzd4:delete()
  70. PT.TangentAngleMin = 0.0;
  71. PT.TangentAngleMax = 6.28;
  72. PT.IsTangentDependOnBase = false;
  73.  
  74. PT.BaseAngle = 3.0;
  75. PT.BaseAngleVariance = 5.0;
  76. PT.BaseAngleSpeed = 0.2;
  77. PT.BaseAngleSpeedVariance = 0.3;
  78. PT.BaseAngleSpeedDirection = 0;
  79. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  80. PT.BaseDirection = vzbzd5
  81. vzbzd5:delete()
  82. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  83. PT.BaseDirectionVariance = vzbzd6
  84. vzbzd6:delete()
  85. local vzbzd7 = D3DXVECTOR3:new(0,0,-10)
  86. PT.BasePosition = vzbzd7
  87. vzbzd7:delete()
  88. local vzbzd8 = D3DXVECTOR3:new(3,3,3)
  89. PT.BasePositionVariance = vzbzd8
  90. vzbzd8:delete()
  91. PT.BaseSize = 6.0;
  92. PT.BaseSizeVariance = 0.2;
  93.  
  94. -- color over time
  95. PT.ColorOverTimeR[1].TimePercent = 0.0;
  96. PT.ColorOverTimeR[1].Value = 0.4;
  97. PT.ColorOverTimeG[1].TimePercent = 0.0;
  98. PT.ColorOverTimeG[1].Value = 0.7;
  99. PT.ColorOverTimeB[1].TimePercent = 0.0;
  100. PT.ColorOverTimeB[1].Value = 1.0;
  101.  
  102. PT.ColorOverTimeR[2].TimePercent = 1.0;
  103. PT.ColorOverTimeR[2].Value = 0.4;
  104. PT.ColorOverTimeG[2].TimePercent = 1.0;
  105. PT.ColorOverTimeG[2].Value = 0.7;
  106. PT.ColorOverTimeB[2].TimePercent = 1.0;
  107. PT.ColorOverTimeB[2].Value = 1.0;
  108.  
  109. -- transparency over time
  110. PT.TransparencyOverTime[1].TimePercent = 0.0;
  111. PT.TransparencyOverTime[1].Value = 0.3;
  112.  
  113. PT.TransparencyOverTime[2].TimePercent = 0.2;
  114. PT.TransparencyOverTime[2].Value = 0.01;
  115.  
  116. PT.TransparencyOverTime[3].TimePercent = 1.0;
  117. PT.TransparencyOverTime[3].Value = 0.0;
  118.  
  119. -- size over time
  120. PT.SizeOverTime[1].TimePercent = 0.0;
  121. PT.SizeOverTime[1].Value = 6.0;
  122.  
  123. PT.SizeOverTime[2].TimePercent = 1.0;
  124. PT.SizeOverTime[2].Value = 10.0;
  125.  
  126. -- Speed over time
  127. PT.SpeedOverTime[1].TimePercent = 0.0;
  128. PT.SpeedOverTime[1].Value = 0.0;
  129.  
  130. PT.SpeedOverTime[2].TimePercent = 0.5;
  131. PT.SpeedOverTime[2].Value = 0.0;
  132.  
  133. PT.SpeedOverTime[3].TimePercent = 1.0;
  134. PT.SpeedOverTime[3].Value = 0.0;
  135.  
  136. -- Tangent Speed over time
  137. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  138. PT.TangentSpeedOverTime[1].Value = 0.0;
  139.  
  140. PT.TangentSpeedOverTime[2].TimePercent = 0.1;
  141. PT.TangentSpeedOverTime[2].Value = 0.0;
  142.  
  143. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  144. PT.TangentSpeedOverTime[3].Value = 0.0;
  145.  
  146.  
  147. -- GravityAcceleration over time
  148. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  149. PT.GravityAccelerationOverTime[1].Value = 0.0;
  150.  
  151. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  152. PT.GravityAccelerationOverTime[2].Value = 0.0;
  153.  
  154. -- AngleSpeed over time
  155. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  156. PT.AngleSpeedOverTime[1].Value = 1.0;
  157.  
  158. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  159. PT.AngleSpeedOverTime[2].Value = 2.0;
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179. PT = Emitter.ParticleTypesParams[2]
  180. PT.IsEmitterLocked = false
  181. PT.DrawOrder = 1
  182. PT.Material = ENMAT_SIMPLEPARTICLE
  183.  
  184.  
  185. PT.TextureName = "environment_effect_explosion_smoke1.dds"
  186.  
  187. PT.ParticlesPerSecond = 50.0;
  188. PT.InitialNumberOfParticles = 0.0;
  189. PT.BaseLifeTime = 1.3;
  190. PT.BaseLifeTimeVariance = 0.3;
  191. PT.BaseSpeed = 6.0;
  192. PT.BaseSpeedVariance = 0.7;
  193.  
  194. PT.TangentSpeed = 0.0;
  195. PT.TangentSpeedVariance = 0.0;
  196. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  197. PT.TangentDirection = vzbzd9
  198. vzbzd9:delete()
  199. PT.TangentAngleMin = 0.0;
  200. PT.TangentAngleMax = 6.28;
  201. PT.IsTangentDependOnBase = false;
  202.  
  203. PT.BaseAngle = 3.0;
  204. PT.BaseAngleVariance = 5.0;
  205. PT.BaseAngleSpeed = 0.2;
  206. PT.BaseAngleSpeedVariance = 0.3;
  207. PT.BaseAngleSpeedDirection = 0;
  208. local vzbzd10 = D3DXVECTOR3:new(0.0,0.0,-1.0)
  209. PT.BaseDirection = vzbzd10
  210. vzbzd10:delete()
  211. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  212. PT.BaseDirectionVariance = vzbzd11
  213. vzbzd11:delete()
  214. local vzbzd12 = D3DXVECTOR3:new(0,0,0)
  215. PT.BasePosition = vzbzd12
  216. vzbzd12:delete()
  217. local vzbzd13 = D3DXVECTOR3:new(3,3,3)
  218. PT.BasePositionVariance = vzbzd13
  219. vzbzd13:delete()
  220. PT.BaseSize = 6.0;
  221. PT.BaseSizeVariance = 0.7;
  222.  
  223. -- color over time
  224. PT.ColorOverTimeR[1].TimePercent = 0.0;
  225. PT.ColorOverTimeR[1].Value = 0.5;
  226. PT.ColorOverTimeG[1].TimePercent = 0.0;
  227. PT.ColorOverTimeG[1].Value = 0.5;
  228. PT.ColorOverTimeB[1].TimePercent = 0.0;
  229. PT.ColorOverTimeB[1].Value = 0.5;
  230.  
  231. PT.ColorOverTimeR[2].TimePercent = 1.0;
  232. PT.ColorOverTimeR[2].Value = 0.5;
  233. PT.ColorOverTimeG[2].TimePercent = 1.0;
  234. PT.ColorOverTimeG[2].Value = 0.5;
  235. PT.ColorOverTimeB[2].TimePercent = 1.0;
  236. PT.ColorOverTimeB[2].Value = 0.5;
  237.  
  238. -- transparency over time
  239. PT.TransparencyOverTime[1].TimePercent = 0.0;
  240. PT.TransparencyOverTime[1].Value = 0.1;
  241.  
  242. PT.TransparencyOverTime[2].TimePercent = 1.0;
  243. PT.TransparencyOverTime[2].Value = 0.0;
  244.  
  245. -- size over time
  246. PT.SizeOverTime[1].TimePercent = 0.0;
  247. PT.SizeOverTime[1].Value = 3.0;
  248.  
  249. PT.SizeOverTime[2].TimePercent = 1.0;
  250. PT.SizeOverTime[2].Value = 8.0;
  251.  
  252. -- Speed over time
  253. PT.SpeedOverTime[1].TimePercent = 0.0;
  254. PT.SpeedOverTime[1].Value = 20.0;
  255.  
  256. PT.SpeedOverTime[2].TimePercent = 1.0;
  257. PT.SpeedOverTime[2].Value = 0.0;
  258.  
  259. -- Tangent Speed over time
  260. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  261. PT.TangentSpeedOverTime[1].Value = 0.0;
  262.  
  263. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  264. PT.TangentSpeedOverTime[2].Value = 0.0;
  265.  
  266.  
  267. -- GravityAcceleration over time
  268. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  269. PT.GravityAccelerationOverTime[1].Value = 0.0;
  270.  
  271. PT.GravityAccelerationOverTime[2].TimePercent = 0.3;
  272. PT.GravityAccelerationOverTime[2].Value = 0.0;
  273.  
  274. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  275. PT.GravityAccelerationOverTime[3].Value = 0.0;
  276.  
  277. -- AngleSpeed over time
  278. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  279. PT.AngleSpeedOverTime[1].Value = 1.5;
  280.  
  281. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  282. PT.AngleSpeedOverTime[2].Value = 0.6;
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297. --
  298. -- end particle system description
  299. --
  300.